//*********************************************************
//
//    Copyright (c) Microsoft. All rights reserved.
//    This code is licensed under the Microsoft Public License.
//    THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
//    ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
//    IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
//    PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
//
//*********************************************************
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.ComponentModel.DataAnnotations;

namespace SQLServerCompactEdition.Repository.POCO.Generated
{
    public partial class Personne : IComparable
    {
        #region Copy Properties
        public void Copy(ref Personne target)
        {
    		target.Nom = this.Nom;
    		target.Prenom = this.Prenom;
    		target.Adresse = this.Adresse;
    		target.CodePostal = this.CodePostal;
    		target.Ville = this.Ville;
        }

        #endregion

        #region Primitive Properties
    	[PrimaryKey]
        public virtual int Id
        {
            get;
            set;
        }
        public virtual string Nom
        {
            get;
            set;
        }
        public virtual string Prenom
        {
            get;
            set;
        }
        public virtual string Adresse
        {
            get;
            set;
        }
        public virtual string CodePostal
        {
            get;
            set;
        }
        public virtual string Ville
        {
            get;
            set;
        }

        #endregion

    
        #region IComparable Implementation
    	public int CompareTo(object obj)
        {
    
            if(obj is Personne)
            {
    			int _IdCompareTo = Id.CompareTo(((Personne)obj).Id);
    						if(_IdCompareTo != 0)
    			{
    				return _IdCompareTo;
    			}
    			return 0;
    		}
            throw new ArgumentException("object is not Personne");
        }

        #endregion

    	
    }
}
